
$('body').on('click','.nav-link[type="top"]',function (e) {
    const id = $(this).attr('id')
    var t;
    console.log(id)
    if (id==='stud-btn'){
        t = 'stud'
    }else if(id==='teach-btn'){
        t = 'teach'
    }else if(id==='test-btn'){
        t = 'test'
    }else if(id==='score-btn'){
        t = 'score'
    }else {
        t = 'cancel'
    }
    $.get(
        '/root/managesys',
        {'type':t},
        function (data) {
            $('.container-xl').html(data)
        },
        'html'
    )

})

$('body').on('click', '#crud', function (e) {
    const type = $(this).attr('type')
    const user_type = $(this).attr('user-type')

    $.get(
        '/root/manageform',
        {'type':type,'user-type':user_type},
        function (data) {
            $('.manage-msg').html(data)
        },
        'html'
    )
})



